package cn.lg.soar.message.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "消息模板状态")
public enum MsgTemplateStatusEnum implements IDict<Integer>, IEnum<Integer> {

    normal("正常", 0),
    disabled("已禁用", 1),
    draft("草稿", 2),
    inreview("待审核", 3),
    rejected("已驳回", 4)
    ;
    MsgTemplateStatusEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
